﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public string Img;
    public string Link;
    protected void Page_Load(object sender, EventArgs e)
    {
        GetTopAdv();
        if (!IsPostBack)
        {
            SetMeta();

        }
    }

    public void SetMeta()
    {
        Include_SY master = (Include_SY)this.Master;
        master.SetMeta("求学网", "求学网_家教辅导_网上家教辅导_企业培训_个人培训_网上培训", "求学网是一个给您提供网上家教辅导的平台，方便您无论在哪里都能够学习到新的东西");

    }

    public void GetTopAdv()
    {
        //List<Adv> Advs = Adv.GetAllByConditon((int)Adv.SYplace.首页导航下面, "", 0);
        //for (int i = 0; i < Advs.Count; i++)
        //{
        //    Img += "/Resource/Adv/" + Advs[i].ImgSrc + "|";
        //    Link += (Advs[i].Link ?? "#") + "|";
        //}
        Img = "Resource/Adv/20130114/04.jpg|Resource/Adv/20130114/1.jpg|Resource/Adv/20130114/2.jpg|";
        Link = "#|#|#|";
        if (!string.IsNullOrEmpty(Img))
            Img = Img.Remove(Img.Length - 1, 1);
        if (!string.IsNullOrEmpty(Link))
            Link = Link.Remove(Link.Length - 1, 1);
    }

}